package com.ruoyi.rsikManage.service.Impl;

import java.util.List;


import com.ruoyi.rsikManage.domain.TReportType;
import com.ruoyi.rsikManage.mapper.TReportTypeMapper;
import com.ruoyi.rsikManage.service.ITReportTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 报备类型字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-08
 */
@Service
public class TReportTypeServiceImpl implements ITReportTypeService
{
    @Autowired
    private TReportTypeMapper tReportTypeMapper;

    /**
     * 查询报备类型字典
     * 
     * @param id 报备类型字典ID
     * @return 报备类型字典
     */
    @Override
    public TReportType selectTReportTypeById(Long id)
    {
        return tReportTypeMapper.selectTReportTypeById(id);
    }

    /**
     * 查询报备类型字典列表
     * 
     * @param tReportType 报备类型字典
     * @return 报备类型字典
     */
    @Override
    public List<TReportType> selectTReportTypeList(TReportType tReportType)
    {
        return tReportTypeMapper.selectTReportTypeList(tReportType);
    }

    /**
     * 新增报备类型字典
     * 
     * @param tReportType 报备类型字典
     * @return 结果
     */
    @Override
    public int insertTReportType(TReportType tReportType)
    {
        return tReportTypeMapper.insertTReportType(tReportType);
    }

    /**
     * 修改报备类型字典
     * 
     * @param tReportType 报备类型字典
     * @return 结果
     */
    @Override
    public int updateTReportType(TReportType tReportType)
    {
        return tReportTypeMapper.updateTReportType(tReportType);
    }

    /**
     * 批量删除报备类型字典
     * 
     * @param ids 需要删除的报备类型字典ID
     * @return 结果
     */
    @Override
    public int deleteTReportTypeByIds(Long[] ids)
    {
        return tReportTypeMapper.deleteTReportTypeByIds(ids);
    }

    /**
     * 删除报备类型字典信息
     * 
     * @param id 报备类型字典ID
     * @return 结果
     */
    @Override
    public int deleteTReportTypeById(Long id)
    {
        return tReportTypeMapper.deleteTReportTypeById(id);
    }
}
